/* video.css */
.video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: calc(100vh - 40px);
  background: #000;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.video-container:active {
  cursor: grabbing;
}

.video-list {
  position: relative;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.video-item {
  position: absolute;
  width: 100%;
  height: calc(100vh - 40px);
  top: 0;
  left: 0;
  will-change: transform;
  backface-visibility: hidden;
}

.video-player {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  height: 800px;
  background: #000;
  overflow: hidden;
  transform: translateZ(0); /* 启用GPU加速 */
}

video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translateZ(0);
  transition: opacity 0.3s;
  mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 90%,
    rgba(0,0,0,0) 100%
  );
}

.video-meta {
  position: fixed;
  top: 20px; /* 距离顶部间距 */
  left: 20px;
  z-index: 100; /* 确保在视频上层 */
  color: #fff;
  max-width: 70%;
}

/* 新增标题样式 */
.video-title {
  font-size: 18px;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.3;
}

/* 调整AV号样式 */
.av-id {
  font-size: 12px;
  opacity: 0.8;
  letter-spacing: 0.5px;
}

.action-bar {
  position: fixed;
  right: 10px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  z-index: 100;
}

.action-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  cursor: pointer;
  transition: transform 0.2s;
}

.action-button:hover {
  transform: scale(1.1);
}

.count {
  font-size: 14px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.user-info {
  position: fixed;
  bottom: 100px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 100;
  color: #fff;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.video-stats {
  font-size: 12px;
  opacity: 0.8;
  margin-top: 4px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 100;
}

.progress {
  height: 100%;
  background: #ff6b6b;
  transition: width 0.1s linear;
}

.loading-indicator {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 200;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}